package com.guyu.app.admin.controller.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class DistrictImportReq {

    @Schema(description = "省份名称")
    private String name_prov;

    @Schema(description = "省份编码")
    private String code_prov;

    @Schema(description = "城市名称")
    private String name_city;

    @Schema(description = "城市编码")
    private String code_city;

    @Schema(description = "区/县名称")
    private String name_coun;

    @Schema(description = "区/县编码")
    private String code_coun;

    @Schema(description = "街道名称")
    private String name_town;

    @Schema(description = "街道编码")
    private String code_town;

    public void setName_prov(String name_prov) {
        this.name_prov = StringUtils.trimToEmpty(name_prov);
    }

    public void setCode_prov(String code_prov) {
        this.code_prov = StringUtils.trimToEmpty(code_prov);
    }

    public void setName_city(String name_city) {
        this.name_city = StringUtils.trimToEmpty(name_city);
    }

    public void setCode_city(String code_city) {
        this.code_city = StringUtils.trimToEmpty(code_city);
    }

    public void setName_coun(String name_coun) {
        this.name_coun = StringUtils.trimToEmpty(name_coun);
    }

    public void setCode_coun(String code_coun) {
        this.code_coun = StringUtils.trimToEmpty(code_coun);
    }

    public void setName_town(String name_town) {
        this.name_town = StringUtils.trimToEmpty(name_town);
    }

    public void setCode_town(String code_town) {
        this.code_town = StringUtils.trimToEmpty(code_town);
    }
}
